﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;

namespace 图书管理系统
{
    class Dao
    {
        public static SqlCommand SqlConnect(String ADUQ, SqlConnection conn)
        {
            //10.22.150.152
            //conn.ConnectionString = @"server=.;DataBase=LibrarySystem;integrated security=sspi";  //windows 连接
            conn.ConnectionString = @"server =10.20.61.37; uid = sa; pwd = 123456; database =LibrarySystem";//数据库连接
            string sql = ADUQ;
            SqlCommand cmd = new SqlCommand(sql, conn);
            return cmd;
        }
    }
}
